const home = Vue => {
	const http = uni.$u.http
	//新增/编辑自我描述
	let specialty = (params) => http.post('v1_0/personal/resume/specialty', params)
	// 新增/编辑特长标签
	let tag = (params) => http.post('v1_0/personal/resume/tag', params)
	//新增/编辑教育经历
	let educationSave = (params) => http.post('v1_0/personal/resume/educationSave', params)
	//删除教育经历
	let educationDelete = (params) => http.post('v1_0/personal/resume/educationDelete', params)
	// 新增/编辑工作经历
	let workSave = (params) => http.post('v1_0/personal/resume/workSave', params)
	// 删除工作经历
	let workDelete = (params) => http.post('v1_0/personal/resume/workDelete', params)
	// 新加/修项目经历
	let projectSave = (params) => http.post('v1_0/personal/resume/projectSave', params)
	//删除项目经历
	let projectDelete = (params) => http.post('v1_0/personal/resume/projectDelete', params)
	//新加修改证书
	let certificateSave = (params) => http.post('v1_0/personal/resume/certificateSave', params)
	// 删除证书
	let certificateDelete = (params) => http.post('v1_0/personal/resume/certificateDelete', params)
	//培训经历添加修改
	let trainingSave = (params) => http.post('v1_0/personal/resume/trainingSave', params)
	//删除培训经历
	let trainingDelete = (params) => http.post('v1_0/personal/resume/trainingDelete', params)
	//简历完整度检测
	let isComplete = (params) => http.get('v1_0/personal/resume/getNoComplete', params)
	//创建简历1
	let step1 = (params) => http.post('v1_0/personal/resume_reg_by_app_interactive/step1', params) //创建简历1
	let step2 = (params) => http.post('v1_0/personal/resume_reg_by_app_interactive/step2', params) //创建简历1
	let step3 = (params, config = {
		custom: {
			loading: true
		}
	}) => http.post('v1_0/personal/resume_reg_by_app_interactive/step3', params, config) //创建简历1
	let stepNoWork = (params, config = {
		custom: {
			loading: true
		}
	}) => http.post('v1_0/personal/resume_reg_by_app_interactive/stepNoWork', params, config)

	//我的职位浏览记录
	let view_job = (params) => http.get('v1_0/personal/view_job/index', params)
	//我的职位申请列表
	let job_apply = (params, config = {
		custom: {
			loading: true
		}
	}) => http.get('v1_0/personal/job_apply/index', params)
	// 我的被关注企业列表
	let attention_me = (params) => http.get('v1_0/personal/attention_me/index', params)
	// 职位收藏列表
	let fav_job = (params) => http.get('v1_0/personal/fav_job/index', params)
	// 关注职位总条数
	let jobtotal = (params) => http.get('v1_0/personal/fav_job/total', params)
	// 关注企业列表
	let attention_company = (params) => http.get('v1_0/personal/attention_company/index', params)
	// 关注企业总条数
	let companytotal = (params) => http.get('/v1_0/personal/attention_company/total', params)
	//取消收藏职位
	let cancelBatch = (params) => http.post('v1_0/personal/fav_job/cancel', params)
	let companycancelBatch = (params) => http.post('v1_0/personal/attention_company/cancel', params)
	// 签到
	let sign_in = (params) => http.post('v1_0/member/sign_in/index', params)
	// 我的积分
	let myPoints = (params) => http.get('v1_0/member/info/myPoints', params)
	// 个人订单列表
	let orderList = (params) => http.get('v1_0/personal/service/orderList', params)
	// 个人订单详情
	let orderDetail = (params) => http.get('v1_0/personal/service/orderDetail', params)
	// 个人发起支付
	let pay = (params) => http.post('v1_0/personal/service/pay', params)
	// 个人继续支付
	let repay = (params) => http.post('v1_0/personal/service/repay', params)
	// 个人订单取消订单
	let orderCancel = (params) => http.post('v1_0/personal/service/orderCancel', params)
	// 个人订单删除订单
	let orderDel = (params) => http.post('v1_0/personal/service/orderDel', params)
	// 企业订单列表
	let company_orderlist = (params) => http.get('v1_0/company/service/orderList', params)
	// 企业订单详情
	let company_orderdetail = (params) => http.get('v1_0/company/service/orderDetail', params)
	// 企业发起支付
	let company_pay = (params) => http.post('v1_0/company/service/pay', params)
	// 企业发起快捷支付
	let company_pay_direct_service = (params) => http.post('v1_0/company/service/pay_direct_service', params)
	// 企业继续支付
	let company_repay = (params) => http.post('v1_0/company/service/repay', params)
	// 企业订单取消订单
	let company_order_cancel = (params) => http.post('v1_0/company/service/orderCancel', params)
	// 企业订单删除订单
	let company_order_del = (params) => http.post('v1_0/company/service/orderDel', params)
	// 用户积分明细
	let pointsLog = (params) => http.get('v1_0/member/info/pointsLog', params)
	//账号信息
	let account = (params) => http.get('v1_0/member/account/index', params)
	// 公司用户手机号修改验证
	let authMobile = (params, config = {}) => http.post('v1_0/member/sendsms/authMobile', params, config)
	// 获取手机号图片验证码
	let picture = (params) => http.get('v1_0/home/captcha/picture', params)
	// 用户手机修改
	let resetMobile = (params, config = {}) => http.post('v1_0/member/account/resetMobile', params, config)
	// 公司用户邮箱修改验证
	let sendmail = (params, config = {}) => http.post('v1_0/member/sendmail/bind', params, config)
	// 用户邮箱修改
	let resetEmail = (params, config = {}) => http.post('v1_0/member/account/resetEmail', params, config)

	// 二维码生成
	let qrcode = (params) => http.get('v1_0/home/qrcode/index', params)

	// 获取注销验证码
	let getCancelApply = (params) => http.post('v1_0/member/sendsms/cancelApply', params)

	// 注销账号
	let getLogOff = (params) => http.post('v1_0/member/account/cancelApply', params)
	// 建议反馈
	let getFeedback = (params) => http.post('v1_0/member/info/feedback', params)
	// 获取简历相关状态
	let getPrivatesIndex = (params) => http.get('v1_0/personal/privates/index', params)
	// 修改简历公开状态
	let setDisplay = (params) => http.post('v1_0/personal/privates/setDisplay', params)
	// 修改简历姓名显示
	let setDisplayName = (params) => http.post('v1_0/personal/privates/setDisplayName', params)
	// 删除屏蔽企业
	let deleteBlacklist = (params) => http.post('v1_0/personal/privates/deleteBlacklist', params)
	// 根据关键字获取企业列表
	let getSearchCompany = (params) => http.get('v1_0/personal/privates/searchCompany', params)
	// 添加屏蔽企业
	let addBlacklist = (params) => http.post('v1_0/personal/privates/addBlacklist', params)
	// 获取服务列表
	let getServiceList = (params) => http.get('v1_0/personal/service/serviceList', params)
	// 获取企业端信息
	let getCompanyIndex = (params) => http.get('v1_0/company/index/index', params)
	// 职位刷新（批量）
	let refreshBatch = (params) => http.post('v1_0/company/job/refreshBatch', params)
	// 职位刷新
	let refreshJob = (params) => http.post('v1_0/company/job/refresh', params)
	//删除职位
	let delJob = (params) => http.post('v1_0/company/job/del', params)
	// 获取企业端收到投递列表
	let getCompanyJobApply = (params) => http.get('v1_0/company/job_apply/index', params)
	// 企业收到的设为同意前置操作
	let company_jobapply_set_agree_pre = (params) => http.post('v1_0/company/job_apply/setAgreePre', params)
	// 企业收到的简历设为已婉拒
	let company_jobapply_set_refuse = (params) => http.post('v1_0/company/job_apply/setRefuse', params)
	// 备注简历
	let remark_resume = (params) => http.post('v1_0/company/index/remarkResume', params)
	// 企业收到的简历删除
	let company_jobapply_del = (params) => http.post('v1_0/company/job_apply/delete', params)
	// 企业收到的设为已查看
	let company_jobapply_set_looked = (params) => http.post('v1_0/company/job_apply/setLook', params)
	// 企业已下载简历列表
	let company_downresume_list = (params) => http.get('v1_0/company/down_resume/index', params)
	// 企业收藏的简历列表
	let company_fav_list = (params) => http.get('v1_0/company/fav_resume/index', params)
	// 企业收藏的简历取消收藏
	let company_fav_cancel = (params) => http.post('v1_0/company/fav_resume/cancel', params)
	// 企业面试邀请列表
	let company_interview_list = (params) => http.get('v1_0/company/interview/index', params)
	// 获取企业认证信息
	let company_authinfo = (params) => http.get('v1_0/company/auth/index', params)
	// 营业执照认证提交
	let company_auth_license = (params) => http.post('v1_0/company/auth/license', params)
	//职位列表
	let job_list = (params) => http.get('v1_0/company/job/index', params)
	// 职位关闭/开启设置
	let jobsetDisplay = (params) => http.post('v1_0/company/job/setDisplay', params)
	// 职位发布（新增
	let addSave = (params) => http.post('v1_0/company/job/addSave', params)
	// 职位编辑（修改）
	let editSave = (params) => http.post('v1_0/company/job/editSave', params)
	// 提交企业资料信息
	let company_profile = (params) => http.post('v1_0/company/profile/index', params)
	// 企业信息（GET获取/POST更新）
	let company_inquire = (params) => http.get('v1_0/company/profile/index', params)
	// 职位类型搜索
	let searchJobCategory = (params) => http.get('v1_0/home/classify/searchJobCategory', params)
	// 获取企业专属客服信息
	let customerService = (params) => http.get('v1_0/member/info/customerService', params)
	// 投诉客服
	let customerServiceComplaint = (params) => http.post('v1_0/member/info/customerServiceComplaint', params)
	// 我的套餐
	let getMysetmeal = (params) => http.get('v1_0/company/service/mysetmeal', params)
	// 查询可发布职位数
	let checkJobaddNumber = (params) => http.get('v1_0/company/job/checkJobaddNumber', params)
	// 获取套餐列表
	let setmealList = (params) => http.get('v1_0/company/service/setmealList', params)
	//职位编辑预请求
	let editPre = (params) => http.get('v1_0/company/job/editPre', params)
	// 获取企业增值服务列表
	let company_serviceList = (params) => http.get('v1_0/company/service/serviceList', params)
	// 获取企业积分套餐列表
	let company_pointsList = (params) => http.get('v1_0/company/service/pointsList', params)
	
	// 删除企业风采照片
	let deleteImgCom = (params, config = {
		custom: {
			loading: true
		}
	}) => http.post('v1_0/company/profile/deleteImg', params, config)
	Object.assign(uni.$u.api, {
		specialty,
		tag,
		educationSave,
		educationDelete,
		workSave,
		workDelete,
		projectSave,
		projectDelete,
		certificateSave,
		certificateDelete,
		trainingSave,
		trainingDelete,
		isComplete,
		step1,
		step2,
		step3,
		stepNoWork,
		view_job,
		job_apply,
		attention_me,
		fav_job,
		attention_company,
		jobtotal,
		companytotal,
		cancelBatch,
		companycancelBatch,
		sign_in,
		myPoints,
		orderList,
		orderDetail,
		pay,
		repay,
		orderCancel,
		orderDel,
		pointsLog,
		account,
		authMobile,
		picture,
		resetMobile,
		sendmail,
		resetEmail,
		qrcode,
		getCancelApply,
		getLogOff,
		getFeedback,
		getPrivatesIndex,
		setDisplay,
		setDisplayName,
		deleteBlacklist,
		getSearchCompany,
		addBlacklist,
		getServiceList,
		getCompanyIndex,
		refreshBatch,
		getCompanyJobApply,
		company_jobapply_set_agree_pre,
		company_jobapply_set_refuse,
		remark_resume,
		company_jobapply_del,
		company_jobapply_set_looked,
		company_downresume_list,
		company_fav_list,
		company_fav_cancel,
		company_interview_list,
		company_authinfo,
		company_auth_license,
		job_list,
		refreshJob,
		jobsetDisplay,
		addSave,
		company_profile,
		searchJobCategory,
		customerService,
		customerServiceComplaint,
		getMysetmeal,
		checkJobaddNumber,
		setmealList,
		editPre,
		company_orderlist,
		company_orderdetail,
		company_pay,
		company_pay_direct_service,
		company_repay,
		company_order_cancel,
		company_order_del,
		company_serviceList,
		editSave,
		company_pointsList,
		company_inquire,
		deleteImgCom,
		delJob
	})
}

export default home